package com.chendx.store.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chendx.model.common.dtos.ResponseResult;
import com.chendx.model.seckill.dto.SeckillGoodsDto;
import com.chendx.model.seckill.pojo.SeckillGoods;

/**
 * Created by chendx on 2022/4/22.
 */
public interface SeckillGoodsService extends IService<SeckillGoods> {

    /**
     * 获取某个时间段的抢购商品
     * @param time
     * @return
     */
    public ResponseResult load(String time);

    /**
     * 商品预热
     * @return
     */
    public ResponseResult loadSeckillGoods();

    /**
     * 查询某个商品
     * @param time
     * @param id
     * @return
     */
    public ResponseResult loadOne(SeckillGoodsDto dto);
}
